package cn.mothin.bean.system;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class DictionaryTreeData implements Serializable {
    private String id;
    private String name;
    private String nameDisplay;
    private boolean system;
    private String memo;

    private List<DictionaryTreeData> children;

    public void addChild(DictionaryTreeData dictionaryTreeData) {
        if (children == null) {
            children = new ArrayList<DictionaryTreeData>();
        }
        children.add(dictionaryTreeData);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSystem() {
        return system;
    }

    public void setSystem(boolean system) {
        this.system = system;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public List<DictionaryTreeData> getChildren() {
        return children;
    }

    public void setChildren(List<DictionaryTreeData> children) {
        this.children = children;
    }

    public String getNameDisplay() {
        return nameDisplay;
    }

    public void setNameDisplay(String nameDisplay) {
        this.nameDisplay = nameDisplay;
    }

}
